<?php defined('SYSPATH') OR die('No direct access allowed.');

class Admin_Controller extends Template_Controller {
	const ALLOW_PRODUCTION = FALSE;
	public $template = 'layouts/template_admin_login';
	
	public function index(){
		$this->template->content = new View('admin/login');
		$this->template->title = '';
		$this->template->content->captcha = Captcha::factory();
	}
	
	public function getUserDetail(){
		$this->template->content = new View('admin/manage_member');
		$this->template->title = 'จัดการ สมาชิก / Manager Member';
		//sakorn.s test get query
		$this->template->content->data_member_s=ORM::factory("member")->find_all();
	}
	public function adminLogin(){
		$this->template->content = new View('admin/index');
		$this->template->title = 'สำหรับ ผู้ดูแลระบบ / Admin Only';
	}
	public function adminLogout(){
		$this->template->content = new View('admin/index');
		$this->template->title = 'สำหรับ ผู้ดูแลระบบ / Admin Only';
	}
	
}
